API_PROTO_FILES=$(shell find errors -name *.proto)

.PHONY: errors
# generate errors proto
errors:
	protoc --proto_path=. \
	       --proto_path=./third_party \
 	       --go_out=paths=source_relative:. \
 	       --go-grpc_out=paths=source_relative:. \
	       $(API_PROTO_FILES)